package mortal.game.control
{
    import modules.*;
    import mortal.component.window.*;
    import mortal.game.events.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;
    import mortal.mvc.interfaces.*;

    public class SysHistoryController extends Controller
    {

        public function SysHistoryController()
        {
            
        }

        public function addHistroy(param1:Object, param2:MsgTypeImpl = null) : void
        {
            view.update(param1, param2);
            
        }

        private function onWindowClose(event:WindowEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.SysHistoryClose, null));
            
        }

        private function onWindowShow(event:WindowEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.SysHistoryOpen, null));
            
        }

        override protected function initView() : IView
        {
            var _loc_1:* = new SysHistroyModule();
            _loc_1.addEventListener(WindowEvent.CLOSE, this.onWindowClose);
            _loc_1.addEventListener(WindowEvent.SHOW, this.onWindowShow);
            return _loc_1;
        }

        override protected function initServer() : void
        {
            super.initServer();
            
        }

    }
}
